
<%@ page import="com.plan.ConstructionReportDetail" %>

<div id="list-constructionReportDetail" class="content scaffold-list" role="main">
    <table>
        <thead>
            <tr>
                <th><g:message code="constructionReportDetail.quantitiesName.label" default="Quantities Name" /></th>
                <th><g:message code="constructionReportDetail.subProject.label" default="subProject" /></th>
                <th><g:message code="constructionReportDetail.elevation.label" default="elevation" /></th>
                <th><g:message code="constructionReportDetail.system.label" default="system" /></th>
                <th><g:message code="constructionReportDetail.room.label" default="room" /></th>
                <th><g:message code="constructionReportDetail.drawing.label" default="drawing" /></th>
                <th><g:message code="constructionReportDetail.spec.label" default="spec" /></th>
                <th><g:message code="constructionReportDetail.installMethod.label" default="installMethod" /></th>
                <th><g:message code="constructionReportDetail.material.label" default="material" /></th>
                <th><g:message code="constructionReportDetail.unit.label" default="unit" /></th>
                <th><g:message code="constructionReportDetail.sum.label" default="sum" /></th>
                <th><g:message code="constructionReportDetail.team.label" default="team" /></th>
                <th><g:message code="operate.label" default="operate" /></th>
            </tr>
        </thead>
        <tbody>
        <g:each in="${constructionReportInstance?.details}" status="i" var="constructionReportDetailInstance">
            <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

                <td><g:link action="show" id="${constructionReportDetailInstance.id}">${fieldValue(bean: constructionReportDetailInstance, field: "quantitiesName")}</g:link></td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "subProject")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "elevation")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "system")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "room")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "drawing")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "spec")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "installMethod")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "material")}</td>

                <td>${fieldValue(bean: constructionReportDetailInstance, field: "unit")}</td>
                <td>${fieldValue(bean: constructionReportDetailInstance, field: "sum")}</td>
                <td>${fieldValue(bean: constructionReportDetailInstance, field: "team")}</td>

                <td><g:link class="edit" controller="constructionReportDetail" action="edit" id="${constructionReportDetailInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                    <g:link class="edit" controller="constructionReportDetail" action="delete" id="${constructionReportDetailInstance?.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');">
                    <g:message code="default.button.delete.label" default="Delete" /></g:link>

                </td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
